<?php
/**
 * File: cmsarticlecontent.php.
 * Author: caoqicheng@haibao.com
 * Editor: PhpStorm
 * Date: 17/2/7 上午10:45
 * Brief:
 */
namespace haibao\jiepai\model\data\article;

class CmsArticleContent extends \haibao\jiepai\model\data\Base{
	
	/**
	 * 0.题图，1.大标，2.文字，
	 * 3.图注，4.图片，5.商品,
	 * 6.信息流题图，7.gif图，
	 * 8.引言，9.文章，10.推荐理由，
	 * 11.音频，12.视频，13.小标 ,
	 * 14.头条题图 ，15.内页拼图 ，
	 * 16.街友评审人物
	 */
	const TYPE_TITLE_PIC = 0;
	const TYPE_HEAD_LINE = 1;
	const TYPE_WORDS = 2;
	const TYPE_CAPTION = 3;
	const TYPE_PICTURE = 4;
	const TYPE_GOODS = 5;
	const TYPE_INFOMATION = 6;
	const TYPE_GIF_PIC = 7;
	const TYPE_INTRODUCTION = 8;
	const TYPE_ARTICLE = 9;
	const TYPE_INTRODUCE_REASON = 10;
	const TYPE_AUDIO = 11;
	const TYPE_VIDEO = 12;
	const TYPE_SMALL_SCALE = 13;
	const TYPE_HEAD_FIGURE = 14;
	const TYPE_JIGSAW_PUZZLE = 15;
	const TYPE_REVIEW_FIGURE = 16;
	
	/**
	 * 1是，0否 
	 * 是否是细节图
	 */
	const IS_DETAIL = 1;
	const DIS_DETAIL = 0;
	
	/**
	 * -1是，0否
	 * 是否是删除
	 */
	const FLAG_DEL = -1;
	const FLAG_IS = 0;
	
	/**
	 * 1是，0否
	 * 是否原款
	 */
	const IS_ORIGINAL = 1;
	const DIS_ORIGINAL = 0;
	
	public $ContentInfo;

	public $Type;
	
	public $ArticleID;
	
	public $Flag;
	
	public $ShowIndex;
	
	public $IsDetail;
	
	public $IsOriginal;
	
	public $ArticleFile;

	public $ImageUrl;
	
	public function __construct(){
		parent::__construct();
		
		$this->stringField('ContentInfo', 'ContentInfo');
		$this->intField('Type', 'Type');
		$this->intField('ArticleID', 'ArticleID');
		$this->intField('Flag', 'Flag',true);
		$this->intField('ShowIndex', 'ShowIndex',true);
		$this->intField('IsDetail', 'IsDetail');
		$this->intField('IsOriginal', 'IsOriginal');
		
		$this->setTableName('cms_article_content');
	}
}